﻿@page "/"
@namespace ChartJs.Blazor.Samples.Server.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="~/css/app.css" rel="stylesheet" />
    <link rel="icon" href="favicon.ico">
    <base href="/" />
    <title>ChartJs.Blazor Samples</title>
</head>

<body>
    <app>
        @(await Html.RenderComponentAsync<Client.App>(RenderMode.Server))
    </app>

    <script id="blazorMode"></script>
    <script>
        document.getElementById("blazorMode").src = window.location.search.includes("mode=server") ? "_framework/blazor.server.js" : "_framework/blazor.webassembly.js";
    </script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js"></script>

    <!-- This is the glue between Blazor and Chart.js -->
    <script src="_content/ChartJs.Blazor/ChartJsBlazorInterop.js"></script>

    <!-- Workarounds -->
    <script src="~/workaround-gradient.js"></script>
</body>

</html>
